package com.example.person.controller;


import com.example.person.service.PersonServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PersonController {
    @Autowired
    private PersonServiceImpl personService;

    @RequestMapping(value = "/getPersonList", method = RequestMethod.GET)
    public java.util.List<com.example.person.entity.Person> getPersonList() {
        return personService.getPersonList();
    }
}
